package org.hyl.javabase.泛型;

public class demo3 {

	public static void main(String[] args) {
		demo3 d3 = new demo3();
	//	d3.fun1();
		d3.fun2(double.class);
	}

	public void fun1() {
		System.out.println(String.class);
	}
	public void fun2(Class b) {
		System.out.println(b.getComponentType());
		System.out.println(b.getName());
		System.out.println(b.getSuperclass());
		System.out.println(b.getTypeName());
		System.out.println(b.toGenericString());
		System.out.println(b.getClasses());
		System.out.println("getSimpleName:"+b.getSimpleName());
		System.out.println(b.getCanonicalName());
		System.out.println(b.getDeclaredClasses());
		System.out.println(b.getAnnotatedInterfaces());
		System.out.println(b.getEnclosingClass());
		System.out.println(b.getGenericInterfaces());
		System.out.println(b.getGenericSuperclass());
	}
}
